package online.shenme.itcast.ui;

import javax.swing.*;
import javax.swing.border.LineBorder;
import java.awt.*;
import java.util.Objects;

/**
 * 欢迎界面
 */
public class WelcomeWindow extends JWindow {

    private static final long serialVersionUID = -2970626103134592561L;

    public WelcomeWindow() {
        init();
    }

    private void init() {
        setSize(430, 300);
        JPanel pane = new JPanel(new BorderLayout());
        ImageIcon ico = new ImageIcon(
                Objects.requireNonNull(getClass().getResource("logo.gif")));
        JLabel l = new JLabel(ico);
        pane.add(BorderLayout.CENTER, l);
        pane.setBorder(new LineBorder(Color.GRAY));
        setContentPane(pane);
    }
}




